package Tasks;

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;
import org.json.JSONException;

import controller.WebServiceController;
import model.ProductInfoItem;
import android.os.AsyncTask;

public class GetSpecificProductAsync extends AsyncTask<String, Void, ProductInfoItem>{

	@Override
	protected ProductInfoItem doInBackground(String... params) 
	{
		WebServiceController controller=new WebServiceController();
		try {
			return controller.GetProductInfo(params[0]);
		} catch (ClientProtocolException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return null;
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return null;
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return null;
		}

	}

}
